package com.tengol.demo.design.pattern.structural.flyweight.demo2;

/**
 * ConcreteWebSite
 *
 * @author dongrui
 * @date 2019/03/07
 */
public class ConcreteWebSite extends WebSite {
    private String name;

    public ConcreteWebSite(String name) {
        this.name = name;
    }
    @Override
    public void use(User user) {
        System.out.println("网站名称：" + name + "：" + user.getName());
    }
}
